package Dao;

import java.util.List;

import entity.Record;

public interface RecordDao {
	
	/**
	 * Title: getpass
	 * Description: 获取某人pass单词记录
	 * @author 白智文
	 */
	public List<Record> getpass(String email,Integer begin,Integer limit) throws Exception;
	
	/**
	 * Title: getseen
	 * Description: 获取某人背过单词记录
	 * @author 白智文
	 */
	public List<Record> getseen(String email,Integer begin,Integer limit) throws Exception;
	
	/**
	 * Title: addrecord
	 * Description: 添加背单词记录
	 * @return 成功返回true 否则 false
	 * @author 白智文
	 */
	public Boolean addrecord(List<Record> rs) throws Exception;
	/**
	 Title: todaywords
	 * Description: 获取某人今天背单词的记录
	 * @author 白智文
	 */
	public List<Record> todaywords(String email) throws Exception;

	/**
	 Title: beforewords
	 * Description: 获取某人今天之前背过单词的记录
	 * @author 白智文
	 */
	public List<Record> beforewords(String email,Integer begin,Integer limit) throws Exception;

	/**
	 * Title: delete
	 * Description: 删除除今天外未背单词记录
	 * @return 成功返回true 否则 false
	 * @author 白智文
	 */
	public Boolean delete() throws Exception;

	/**
	 * Title: delete
	 * Description: 更改单词背诵状态
	 * @return 成功返回true 否则 false
	 * @author 白智文
	 */
	public Boolean update(String email,int worldID,int flag) throws Exception;
	
}
